package com.kaifamiao.www.ioDemo.do0923;

import java.lang.reflect.Constructor;

public class getDeclaredConstructorDemo1 {

    public static void main(String[] args) throws NoSuchMethodException {

        Class<Student> stu = Student.class;
        Constructor<Student> dlc = stu.getDeclaredConstructor();

        System.out.println(dlc);
        //返回多个for-each输出
        Constructor<Student>[] cls1 = (Constructor<Student>[]) stu.getDeclaredConstructors();
        for (Constructor<Student> constructor : cls1 ){
            System.out.println(constructor);

        }

    }
}
